[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
twMBPress( nButton, nPress, nX, nY )
----------------------------------------------------------------------------
Retrieve button press information for a particular mouse button.
This function calls _twM5?() and so resets the internal counters
for button presses when it is called.
Arguments:
nButton - 'N' button number: ( 0 - Left, 1 - Right )
nPress - 'N' The number of times the button was pressed since the
last call to this routine. This parameter is passed
by reference.
nX - 'N' X coordinate of the mouse cursor when the last press
occurred. This parameter is passed by reference.
nY - 'N' Y coordinate of the mouse cursor when the last press
occurred. This parameter is passed by reference.
Return:
1 if the button is down, 0 if it is released.
Example:
IF twMBPress( 1, @nNoPresses, @nMouseX, @nMouseY )
// do something using the press number or the coordinates.
ENDIF
See Also:
twMButtonDown()
_twM5A()
_twM5B()
_twM5C()
_twM5D()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson